package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 评论对象 bai_comment
 * 
 * @author saruri
 * @date 2024-09-01
 */
public class BaiComment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 排序 */
    @Excel(name = "排序")
    private Long sort;

    /** 链接 */
    @Excel(name = "链接")
    private String url;

    /** 审核状态 */
    @Excel(name = "审核状态")
    private Integer checked;

    /** 回答状态 */
    @Excel(name = "回答状态")
    private Integer status;

    /** 标签 */
    @Excel(name = "标签")
    private String tags;

    /** 评论用户id */
    @Excel(name = "评论用户id")
    private Long userId;

    /** 内容id */
    @Excel(name = "内容id")
    private Long contentId;

    /** 评论正文 */
    @Excel(name = "评论正文")
    private String content;

    /** 回复的评论id */
    @Excel(name = "回复的评论id")
    private Long commentId;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    private String title;

    public Long getIsEnable() {
        return isEnable;
    }

    public void setIsEnable(Long isEnable) {
        this.isEnable = isEnable;
    }

    private Long isEnable;


    public String getUserName() {
        return userName;
    }

    public String getNickName() {
        return nickName;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    private String userName;
    private String nickName;
    private String avatar;


    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }
    public void setUrl(String url) 
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }
    public void setChecked(Integer checked) 
    {
        this.checked = checked;
    }

    public Integer getChecked() 
    {
        return checked;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setTags(String tags) 
    {
        this.tags = tags;
    }

    public String getTags() 
    {
        return tags;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setContentId(Long contentId) 
    {
        this.contentId = contentId;
    }

    public Long getContentId() 
    {
        return contentId;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setCommentId(Long commentId) 
    {
        this.commentId = commentId;
    }

    public Long getCommentId() 
    {
        return commentId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("sort", getSort())
            .append("createTime", getCreateTime())
            .append("url", getUrl())
            .append("checked", getChecked())
            .append("status", getStatus())
            .append("tags", getTags())
            .append("userId", getUserId())
            .append("contentId", getContentId())
            .append("content", getContent())
            .append("commentId", getCommentId())
            .toString();
    }
}
